package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.Entry;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/12/27  9:53
 */
public interface EntryMapper {
    public List<Entry> pageList(@Param("entry") Entry entry,
                                @Param("pageBegin") Integer pageBegin,
                                @Param("pageSize") Integer pageSize);

    public Integer count(@Param("entry") Entry entry);

    public int insert(Entry entry);

    public Entry selectById(@Param("id") Long id);

    public int update(Entry entry);

    public Entry selectByTitle(@Param("title") String title);

    public int delete(@Param("id") Long id);
}
